Fix two crashes with display of R2L lines in GUI sessions.
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Apr 2010 10:29:40 +0000 (13:29 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Apr 2010 10:29:40 +0000 (13:29 +0300)
commit4e5e315ecd35b1100facdc1112abb9fda53a8092
treec87a6b625940ccc3fd2e5a63120abc71af34eed1
parent452a6c1d2add336cd6fe9a788623fcbcf77d9cfe
Fix two crashes with display of R2L lines in GUI sessions.

 xdisp.c (next_element_from_buffer): Don't call
 bidi_paragraph_init if we are at ZV.  Fixes a crash when reseated to
 ZV by try_window_reusing_current_matrix.
 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
 which happens with R2L glyph rows.  Fixes a crash when inserting a
 character at end of an R2L line.
src/ChangeLog
src/xdisp.c